<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <!-- Resources like JavaScript libraries and CSS -->
        <syntax:resources name="code" languages="['C++', 'C#', 'Css', 'Delphi', 'Groovy', 'Java', 'Xml', 'Java Script', 'PHP', 'Python', 'Ruby', 'Sql', 'VB']" />
        <title>Show Code</title>
    </head>
    <body>
        <div class="body">
                 <div class="leftcolumn">
            <h1>Show Code</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                        <tr class="prop">
                            <td valign="top" class="name">Title:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:code, field:'title')}</td>
                            
                        </tr>
                    
                    
                        <tr class="prop">
                            <td valign="top" class="name">Language:</td> 
                            
                            <td valign="top" class="value">${fieldValue(bean:code, field:'language')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="value" colspan="2">
                              <syntax:format name="code" language="${fieldValue(bean:code, field:'language')}">
                                   ${fieldValue(bean:code, field:'codeString')}
                              </syntax:format>
                            </td>
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name">Submited Date:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:code, field:'submitedDate')}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${code?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <!--
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                    -->
                </g:form>
            </div>
        </div>
        </div>
    </body>
</html>
